package com.overseasShopping.Biz.impl;

import java.util.List;

import com.overseasShopping.Base.DAO.InformationDAO;
import com.overseasShopping.Biz.InformationBiz;
import com.overseasShopping.pojo.Information;
import com.overseasShopping.pojo.User;

public class InformationBizImpl implements InformationBiz{
	InformationDAO informationDAO;
	
	public InformationDAO getInformationDAO() {
		return informationDAO;
	}

	public void setInformationDAO(InformationDAO informationDAO) {
		this.informationDAO = informationDAO;
	}

	public List<Information> getsendinfobyuid(User user) {
		return informationDAO.getsendinfobyuid(user);
	}

	public List<Information> getreceiveinfobyuid(User user) {
		return informationDAO.getreceiveinfobyuid(user);
	}

	public void addinfo(Information information) {
		informationDAO.save(information);	
	}

	public Information getinformation(int id) {
		return informationDAO.get(id);
	}

	public void update(Information information) {
		informationDAO.update(information);
	}
	
}
